Grammar-based test generation with YouGen

نویسندگان

  • Daniel Hoffman
  • David Ly-Gagnon
  • Paul A. Strooper
  • Hong-Yi Wang
چکیده

Grammars are traditionally used to recognize or parse sentences in a language, but they can also be used to generate sentences. In grammar-based test generation (GBTG), context-free grammars are used to generate sentences that are interpreted as test cases. A generator reads a grammar G and generates L(G), the language accepted by the grammar. Often L(G) is so large that it is not practical to execute all of the generated cases. Therefore, GBTG tools support “tags”: extra-grammatical annotations which restrict the generation. Since its introduction in the early 1970s, GBTG has become well-established: proven on industrial projects and widely published in academic venues. Despite the demonstrated effectiveness, the tool support is uneven; some tools target specific domains, e.g., compiler testing, while others are proprietary. The tools can be difficult to use and the precise meaning of the tags are sometimes unclear. As a result, while many testing practitioners and researchers are aware of GBTG, few have detailed knowledge or experience. We present YouGen, a new GBTG tool supporting many of the tags provided by previous tools. In addition, YouGen incorporates covering-array tags, which support a generalized form of pairwise testing. These tags add considerable power to GBTG tools and have been available only in limited form in previous GBTG tools. We provide semantics for the YouGen tags using parse trees and a new construct, generation trees. We illustrate YouGen with both simple examples and a number of industrial case studies.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Role of Textual vs. Compound Input Enhancement in Developing Grammar Ability

The present study investigated comparatively the impact of two types of input enhancement (i.e. textual vs. compound enhancement) on developing grammar ability in Iranian EFL setting. Sixty-five female secondary high school students were selected as a homogenous sample out of about a 100-member population based on Nelson language proficiency test. Then, their grammar ability was measured based ...

متن کامل

The Effect of Input-based and Output-based Focus on Form Instruction on Learning Grammar by Iranian EFL Learners

This quasi-experimental study investigated the effects of input-enhancement and production of sentences, containing the target structures, on learning grammar by Iranian Intermediate EFL learners. Sixty male students in three input, output, and control groups participated in the study. After checking the homogeneity of the participants with a proficiency test, the researchers administered a pre...

متن کامل

Knowledge of Grammar, Oral Communication Strategies, and oral Fluency: A Study of Iranian EFL Learners

This study tested the impact of implicit and explicit knowledge of grammar on learners’ use of oral communication strategies (OCSs) and the interface of OCSs and oral fluency. The study was performed on 24 male and 36 female Iranian university students of English Translation studying at Payame Nour Universities of Lar, Khonj, and Evaz chosen based on availability and ease of access. The data we...

متن کامل

The Effect of Multimedia-Based Instruction on Improving Iranian EFL Learners’ Grammar Knowledge and their Attitudes

Applying technologies has recently caused language education to undertake influential modifications. Hence, this study tried to investigate the impact of using technology in form of multimedia on improving grammar knowledge of Iranian high school students and also examined their attitudes toward multimedia-based mode of instruction. To do so, three intact classes of lower intermediate students ...

متن کامل

Test-data generation for Xtext

We describe a method and a corresponding tool for grammarbased test-data generation (GBTG). The basic generation principle is to enumerate test data based on grammatical choices. However, generation is broken down into two phases to deal with context-sensitive properties in an efficient and convenient manner. The first phase enumerates test data (i.e., parse trees) with placeholders. The second...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softw., Pract. Exper.

دوره 41  شماره 

صفحات  -

تاریخ انتشار 2011